package com.itheima.pojo;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

@Data//自动生成get/set方法
public class StudentQueryParam {
    private Integer page = 1;//page表示当前页，默认值为1
    private Integer pageSize=10;//pageSize表示每页显示的记录数，默认值为10
    private String name;
    private Integer degree;
    private Integer clazzId;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate begin;//日期格式
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate end;
}
